﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Models
{
    /// <summary>
    /// 工作流状态类
    /// </summary>
    [Serializable]
    public class WorkflowStatus
    {
        /// <summary>
        /// 工作流Id
        /// </summary>
        public int WorkParentId { get; set; }
        /// <summary>
        /// 创建者用户名
        /// </summary>
        public string CreaterUserName { get; set; }
        /// <summary>
        /// 工作流模板Id
        /// </summary>
        public int WorkMouldId { get; set; }
        /// <summary>
        /// 工作流模板名
        /// </summary>
        public string WorkName { get; set; }
        /// <summary>
        /// 工作流节点数量
        /// </summary>
        public int NodeCount { get; set; }
        /// <summary>
        /// 工作流状态定义
        /// </summary>
        public int StatusDefine { get; set; }
        /// <summary>
        /// 工作流状态序号
        /// </summary>
        public int StatusNo { get; set; }
        /// <summary>
        /// 工作流创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 工作流完成时间
        /// </summary>
        public DateTime CompleteTime { get; set; }
        /// <summary>
        /// 创建者团队Id
        /// </summary>
        public int CreaterTeamId { get; set; }
        /// <summary>
        /// 创建者角色Id
        /// </summary>
        public int CreaterRoleId { get; set; }
        /// <summary>
        /// 只读人员团队Id
        /// </summary>
        public int ReaderTeamId { get; set; }
        /// <summary>
        /// 只读人员角色Id
        /// </summary>
        public int ReaderRoleId { get; set; }
        /// <summary>
        /// 表名称
        /// </summary>
        public string TableName { get; set; }
        /// <summary>
        /// 页面名称
        /// </summary>
        public string WebName { get; set; }
        /// <summary>
        /// 紧急程度
        /// </summary>
        public string Critical { get; set; }
        /// <summary>
        /// 标题内容
        /// </summary>
        public string Content { get; set; }
        /// <summary>
        /// 退回原因
        /// </summary>
        public string ParentReturnReason { get; set; }

        //扩展属性

        /// <summary>
        /// 子节点序号
        /// </summary>
        public int ChildNodeNo { get; set; }
        /// <summary>
        /// 子节点状态
        /// </summary>
        public int ChildStatusNo { get; set; }
        /// <summary>
        /// 是否为单一节点
        /// </summary>
        public int IsSingleNode { get; set; }
        /// <summary>
        /// 子节点Id
        /// </summary>
        public int WorkChildId { get; set; }
        /// <summary>
        /// 子节点名称
        /// </summary>
        public string NodeName { get; set; }
        /// <summary>
        /// 是否已读
        /// </summary>
        public int IsRead { get; set; }
        /// <summary>
        /// 创建者中文名
        /// </summary>
        public string CreaterDisplayName { get; set; }
        /// <summary>
        /// 退回原因
        /// </summary>
        public string ReturnReason { get; set; }
        /// <summary>
        /// 暂停人
        /// </summary>
        public string PauseName { get; set; }
    }
}
